home *** CD-ROM | disk | FTP | other *** search
/ Ian & Stuart's Australian Mac 1993 September / September 93.iso / Archives / Applications / Text / tex / rtf2LaTeX 1.5 / rtf2LaTeX / fonts.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-07-06  |  5.4 KB  |  138 lines  |  [TEXT/KAHL]

  1. /*
  2.  * Font definitions.
  3.  *
  4.  * Both halves of the Symbol fonts are assumed always to be used in
  5.  * math mode, while the others are assumed _not_ to be in math mode
  6.  * unless the first character is a $ (which is discarded).
  7.  *
  8.  * I have invented a few TeX definitions, namely:
  9.  *    \def\therefore{}        % three dots in a triangle
  10.  *    \def\pound/{{\it\$\/}}        % Pound Sterling
  11.  *    \def\ppercent/{\%_\circ}    % ppm
  12.  *    \def\reg/{}            % registered (R)
  13.  *    \def\trade/{}            % Trade mark
  14.  *    \def\yen/{}            % Yen symbol
  15.  * Which are also in TeX_defs.tex
  16.  */
  17. typedef char *FONT[128];
  18.  
  19. /*****************************************************************************/
  20. /*
  21.  * This is the mac's Symbol font
  22.  */
  23. static FONT symbol = {
  24. /* ^@ -- ^G */    "",        "",        "",        "",
  25.           "",        "",        "",        "",
  26. /* ^H -- ^O */    "",        "",        "",        "",
  27.           "",        "",        "",        "",
  28. /* ^P -- ^W */    "",        "",        "",        "",
  29.           "",        "",        "",        "",
  30. /* ^X -- ^] */    "",        "",        "",        "",
  31.           "",        "",        "",        "",
  32. /*  !"#$%&' */    " ",        "!",        "\\forall",    "\\#",
  33.           "\\exists",    "\\%",        "\\&",        "\\ni",
  34. /* ()*+,-./ */    "(",        ")",        "\\ast",    "+",
  35.           ",",        "-",        ".",        "/",
  36. /* 01234567 */    "0",        "1",        "2",        "3",
  37.           "4",        "5",        "6",        "7",
  38. /* 89:;<=>? */    "8",        "9",        ":",        ";",
  39.           "<",        "=",        ">",        "?",
  40. /* @ABCDEFG */    "\\cong",    "A",        "B",        "\\Chi",
  41.           "\\Delta",    "E",        "\\Phi",    "\\Gamma",
  42. /* HIJKLMNO */    "E",        "I",        "\\vartheta",    "K",
  43.           "\\Lambda",    "M",        "N",        "O",
  44. /* PQRSTUVW */    "\\Pi",    "\\Theta",    "P",        "\\Sigma",
  45.           "T",        "Y",        "\\varsigma",    "\\Omega",
  46. /* XYZ[\]^_ */    "\\Xi",    "\\Psi",    "Z",        "[",
  47.           "\\therefore", "]",        "\\bot",    "\\_",
  48. /* `abcdefg */    "^{--}",    "\\alpha",    "\\beta",    "\\chi",
  49.           "\\delta",    "\\epsilon",    "\\phi",    "\\gamma",
  50. /* hijklmno */    "\\eta",    "\\iota",    "\\varphi",    "\\kappa",
  51.           "\\lambda",    "\\mu",        "\\nu",        "\\omicron",
  52. /* pqrstuvw */    "\\pi",    "\\theta",    "\\rho",    "\\sigma",
  53.           "\\tau",    "\\upsilon",    "\\varpi",    "\\omega",
  54. /* xyz{|}~^? */   "\\xi",    "\\psi",    "\\zeta",    "\\{",
  55.           "|",        "\\}",        "\\sim",    " ",
  56. };    
  57.  
  58. /*****************************************************************************/
  59. /*
  60.  * This is the high half of the mac Symbol font with the high bit stripped
  61.  */
  62. static FONT symbol8 = {
  63. /* ^@ -- ^G */    "",        "",        "",        "",
  64.           "",        "",        "",        "",
  65. /* ^H -- ^O */    "",        "",        "",        "",
  66.           "",        "",        "",        "",
  67. /* ^P -- ^W */    "",        "",        "",        "",
  68.           "",        "",        "",        "",
  69. /* ^X -- ^] */    "",        "",        "",        "",
  70.           "",        "",        "",        "",
  71. /*  !"#$%&' */    " ",        "\\Upsilon",    "'",        "\\le",
  72.           "/",        "\\infty",    "f",        "\\clubsuit",
  73. /* ()*+,-./ */    "\\diamondsuit", "\\heartsuit", "\\spadesuit",
  74.                                   "\\leftrightarrow",
  75.           "\\leftarrow", "\\uparrow",    "\\rightarrow",    "\\downarrow",
  76. /* 01234567 */    "^\\circ",    "\\pm",     "''",        "\\ge",
  77.           "\\times",    "\\propto",    "\\partial",    "\\bullet",
  78. /* 89:;<=>? */    "\\div",    "\\ne",        "\\equiv",    "\\approx",
  79.           "\\dots",    "|",        "--",        "",
  80. /* @ABCDEFG */    "\\aleph",    "\\Im",        "\\Re",        "\\wp",
  81.           "\\otimes",    "\\oplus",    "\\emptyset",    "\\cap",
  82. /* HIJKLMNO */    "\\cup",    "\\supset",    "\\supseteq",  "\\not\\subset",
  83.           "\\subset",    "\\subseteq",    "\\in",        "\\not\\in",
  84. /* PQRSTUVW */    "\\angle",    "\\nabla",    "\\reg/",    "\\copyright",
  85.           "\\trade/",    "\\prod",    "\\sqrt",    ".",
  86. /* XYZ[\]^_ */    "\\neg",    "\\wedge",    "\\vee",    "\\Leftrightarrow",
  87.           "\\Leftarrow", "\\Uparrow",    "\\Rightarrow",    "\\Downarrow",
  88. /* `abcdefg */    "\\diamond",    "\\langle",    "\\reg/",    "\\copyright",
  89.           "\\trade/",    "\\sum",    "",        "",
  90. /* hijklmno */    "",        "",        "",        "",
  91.           "",        "",        "",        "",
  92. /* pqrstuvw */    "",        "\\rangle",    "\\int",    "",
  93.           "",        "",        "",        "",
  94. /* xyz{|}~^? */   "",        "",        "",        "",
  95.           "",        "",        "",        " ",
  96. };    
  97.  
  98. /*****************************************************************************/
  99. /*
  100.  * This is the high half of the mac Times or Helvetica font with
  101.  * the high bit stripped. They are pretty similar to the
  102.  * Chicago/NewYork/Geneva fonts, except that those fonts are less complete.
  103.  */
  104. static FONT times8 = {
  105. /* ^@ -- ^G */    "\\\"{A}",    "\\AA{}",    "\\c{C}",    "\\'{E}",
  106.           "\\~{N}",    "\\\"{O}",    "\\\"{U}",    "\\'{a}",
  107. /* ^H -- ^O */    "\\`{a}",    "\\^{a}",    "\\\"{a}",    "\\~{a}",
  108.           "\\aa{}",    "\\c{c}",    "\\'{e}",    "\\`{e}",
  109. /* ^P -- ^W */    "\\^{e}",    "\\\"{e}",    "\\'{\\i}",    "\\`{\\i}",
  110.           "\\^{\\i}",    "\\\"{\\i}",    "\\~{n}",    "\\'{o}",
  111. /* ^X -- ^] */    "\\`{o}",    "\\^{o}",    "\\\"{o}",    "\\~{o}",
  112.           "\\'{u}",    "\\`{u}",    "\\^{u}",    "\\\"{u}",
  113. /*  !"#$%&' */    "\\dagger",    "$^\\circ",    "\\cents{}",    "\\pound/",
  114.           "\\S{}",    "$\\bullet",    "\\P{}",    "\\ss{}",
  115. /* ()*+,-./ */    "\\reg/",    "\\copyright{}", "\\trade/",    "'",
  116.           "",        "$\\ne",    "\\AE{}",    "\\O{}",
  117. /* 01234567 */    "$\\infty",    "$\\pm",    "$\\le",    "$\\ge",
  118.           "\\yen/",    "$\\mu",    "$\\partial",    "$\\Sigma",
  119. /* 89:;<=>? */    "$\\Pi",    "$\\Pi",    "$\\int",    "\\b{a}",
  120.           "\\b{o}",    "$\\Omega",    "\\ae{}",    "\\o{}",
  121. /* @ABCDEFG */    "?`",        "!'",        "\\neg",    "$\\sqrt",
  122.           "$f",        "$\\approx",    "$\\Delta",    "$\\ll",
  123. /* HIJKLMNO */    "$\\gg",    "...",        " ",        "\\`{A}",
  124.           "\\~{A}",    "\\~{O}",    "\\OE{}",    "\\oe{}",
  125. /* PQRSTUVW */    "--",        "---",        "``",        "''",
  126.           "`",        "'",        "$\\div",    "$\\diamond",
  127. /* XYZ[\]^_ */    "\\\"{y}",    "\\\"{Y}",    "/",        "",
  128.           "$<",        "$>",        "fi",        "fl",
  129. /* `abcdefg */    "\\ddagger{}", "$\\cdot",    ",",        "''",
  130.           "$\\ppercent/", "\\^{A}",    "\\^{E}",    "\\'{A}",
  131. /* hijklmno */    "\\\"{E}",    "\\`{E}",    "\\'{I}",    "\\^{I}",
  132.           "\\\"{I}",    "\\`{I}",    "\\'{O}",    "\\^{O}",
  133. /* pqrstuvw */    "",         "\\`{O}",    "\\'{U}",    "\\^{U}",
  134.           "\\`{U}",    "{\\oldstyle1}", "\\^{ }",    "\\~{ }",
  135. /* xyz{|}~^? */   "\\={ }",    "\\u{ }",    "\\.{ }",    "",
  136.           "\\c{ }",    "\\H{ }",    "",        "\\v{ }",
  137. };    
  138.